<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateBibTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateBibLabel_idBib}" for="idBib" />
                    <h:inputText id="idBib" value="#{bibController.selected.idBib}" title="#{bundle.CreateBibTitle_idBib}" required="true" requiredMessage="#{bundle.CreateBibRequiredMessage_idBib}"/>
                    <h:outputLabel value="#{bundle.CreateBibLabel_capBib}" for="capBib" />
                    <h:inputText id="capBib" value="#{bibController.selected.capBib}" title="#{bundle.CreateBibTitle_capBib}" required="true" requiredMessage="#{bundle.CreateBibRequiredMessage_capBib}"/>
                    <h:outputLabel value="#{bundle.CreateBibLabel_verBib}" for="verBib" />
                    <h:inputText id="verBib" value="#{bibController.selected.verBib}" title="#{bundle.CreateBibTitle_verBib}" required="true" requiredMessage="#{bundle.CreateBibRequiredMessage_verBib}"/>
                    <h:outputLabel value="#{bundle.CreateBibLabel_libBib}" for="libBib" />
                    <h:inputText id="libBib" value="#{bibController.selected.libBib}" title="#{bundle.CreateBibTitle_libBib}" required="true" requiredMessage="#{bundle.CreateBibRequiredMessage_libBib}"/>
                    <h:outputLabel value="#{bundle.CreateBibLabel_contBib}" for="contBib" />
                    <h:inputTextarea rows="4" cols="30" id="contBib" value="#{bibController.selected.contBib}" title="#{bundle.CreateBibTitle_contBib}" required="true" requiredMessage="#{bundle.CreateBibRequiredMessage_contBib}"/>
                    <h:outputLabel value="#{bundle.CreateBibLabel_versBib}" for="versBib" />
                    <h:inputText id="versBib" value="#{bibController.selected.versBib}" title="#{bundle.CreateBibTitle_versBib}" required="true" requiredMessage="#{bundle.CreateBibRequiredMessage_versBib}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{bibController.create}" value="#{bundle.CreateBibSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{bibController.prepareList}" value="#{bundle.CreateBibShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateBibIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
